import request from '@/utils/request'

// 查询teacherCourse列表
export function listTeacherCourse(query) {
  return request({
    url: '/teacherCourse/teacherCourse/list',
    method: 'get',
    params: query
  })
}

// 查询teacherCourse详细
export function getTeacherCourse(id) {
  return request({
    url: '/teacherCourse/teacherCourse/' + id,
    method: 'get'
  })
}

// 新增teacherCourse
export function addTeacherCourse(data) {
  return request({
    url: '/teacherCourse/teacherCourse',
    method: 'post',
    data: data
  })
}

// 修改teacherCourse
export function updateTeacherCourse(data) {
  return request({
    url: '/teacherCourse/teacherCourse',
    method: 'put',
    data: data
  })
}

// 删除teacherCourse
export function delTeacherCourse(id) {
  return request({
    url: '/teacherCourse/teacherCourse/' + id,
    method: 'delete'
  })
}
